package com.itheima_05;

public class Student {
    private String name;
    private int age;
    public Student() {}//如果没有自定义带参构造方法，则系统默认此方法为的无参构造方法
    public Student(String name) {
        this.name = name;
    }
    public Student(int age) {
        this.age = age;
    }
    public Student(String name, int age) {
        this.name = name;
        this.age = age;
    }
    public void show() {
        System.out.println(name + "  " + age);
    }
}
